//
//  GQMVHeaderView.m
//  TingMusic
//
//  Created by sunny on 16/4/21.
//  Copyright © 2016年 sunny. All rights reserved.
//

#import "GQMVHeaderView.h"

@interface GQMVHeaderView ()
/** 最热按钮 */
@property (weak, nonatomic) IBOutlet UIButton *hottestButton;
/** 最新按钮 */
@property (weak, nonatomic) IBOutlet UIButton *recentButton;


@end

@implementation GQMVHeaderView

//点击了最热按钮
- (IBAction)HottestButtonClick {
    [self.hottestButton setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    [self.recentButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    
//    发布通知
    [[NSNotificationCenter defaultCenter] postNotificationName:@"HottestButtonDidClickNotification" object:nil];
}

//点击了最新按钮
- (IBAction)NewButtonClick {
    [self.recentButton setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    [self.hottestButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    
    //    发布通知
    [[NSNotificationCenter defaultCenter] postNotificationName:@"NewButtonDidClickNotification" object:nil];
}


@end
